<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .table1{
            border: 1px solid;
        }
    </style>
</head>
<body>

<table border="1">
    <thead>
    <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>01</td>
        <td>亚瑟</td>
        <td>
            <input type="button" value="删除" class="delete">
        </td>
    </tr>

    <tr>
        <td>02</td>
        <td>亚瑟</td>
        <td>
            <input type="button" value="删除" class="delete">
        </td>
    </tr>

    <tr>
        <td>03</td>
        <td>亚瑟</td>
        <td>
            <input type="button" value="删除" class="delete">
        </td>
    </tr>

    <tr>
        <td>04</td>
        <td>亚瑟</td>
        <td>
            <input type="button" value="删除" class="delete">
        </td>
    </tr>
    </tbody>


</table>

<script src="static/jquery-3.6.0.min.js"></script>
<script>
    $(".delete").click(function (){
        $(this).parent().parent().remove();
    });
</script>
</body>
</html>